//
//  QueryBuyHistoryOperation.m
//  PlayBall
//
//  Created by 龙华 伍 on 12-7-1.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "JddQueryBuyHistoryOperation.h"

@implementation JddQueryBuyHistoryOperation

@synthesize LotID;
@synthesize PageNo;
@synthesize PageSize;

- (void)main{
    JddNetDataCommunication *netDataCommunication = [[JddNetDataCommunication alloc] init];
    
    NSString *bodyString = [JddParameterBuilder queryBuyHistory:self.LotID page:self.PageNo pagesize:self.PageSize];
    
    NSData *dataLotteryIssue = [netDataCommunication requestDataByPostBodyData:[bodyString dataUsingEncoding:NSUTF8StringEncoding]];    [((NSObject*)self.delegate) performSelectorOnMainThread:@selector(QueryBuyHistoryOperationResult:) withObject:dataLotteryIssue waitUntilDone:NO];            
}

@end